#version 150

#moj_import <vsh_util.glsl>

uniform mat4 ProjMat;
uniform sampler2D Sampler0;
uniform vec4 ColorModulator;
uniform float FogEnd;

in vec2 texCoord0;

out vec4 fragColor;

void main() {
    if(isGUI(ProjMat) && FogEnd == 5.0)discard;

    vec4 color = texture(Sampler0, texCoord0);
    if (color.a == 0.0) {
        discard;
    }
    fragColor = color * ColorModulator;
}
